package com.blog.blog.service;

import com.alibaba.fastjson.JSONObject;
import com.blog.blog.dao.pojo.Article;
import com.blog.blog.vo.ArticleVo;
import com.blog.blog.vo.Result;
import com.blog.blog.vo.params.ArticleParam;
import com.blog.blog.vo.params.PageParams;

import java.util.LinkedHashMap;
import java.util.List;

public interface ArticleService{

    Result listArticle(PageParams pageParams);

    Result hotArticle(int limit);

    Result newArticle(int limit);

    Result listArchives();

    ArticleVo findArticleById(Long id);

    Result publish(ArticleParam articleParam);


    List<JSONObject> findAllPersonalArticle();

    void delArticleById(Long articleId);
}
